import { prop_global_dueto_time } from '../../../../../../../../../DataDefine/sourceData';
import {
  prop_cur_req_time,
  prop_cur_req_user_identity,
} from '../../../../../../../Classes/cla_req_cur_headers_info';
import {
  prop_increase_type_describe,
  prop_increase_type_name,
  req_info_increase_type,
} from '../../../Classes/cla_req_info_increase_type';

const sign_info_increase_typeTag = 'sign_info_increase_type';

export const prop_sign_info_increase_type_belong_user = 'belong_user';

export const prop_sign_info_increase_type_id = 'id';

export class sign_info_increase_type {
  get [Symbol.toStringTag]() {
    return sign_info_increase_typeTag;
  }

  constructor(cur_info: req_info_increase_type) {
    this[prop_global_dueto_time] = cur_info[prop_cur_req_time];

    this[prop_sign_info_increase_type_belong_user] =
      cur_info[prop_cur_req_user_identity];

    this[prop_increase_type_name] = cur_info[prop_increase_type_name];

    this[prop_increase_type_describe] = cur_info[prop_increase_type_describe];

    this[prop_sign_info_increase_type_id] = cur_info.id;
  }

  /**
   * 当前 类型 id
   */
  [prop_sign_info_increase_type_id]: string = '';

  /**
   * 创建 时间
   */
  [prop_global_dueto_time]: string;

  /**
   * 标签 创建者
   */
  [prop_sign_info_increase_type_belong_user]: string;

  /**
   * 标签名
   */
  [prop_increase_type_name]: string;

  /**
   * 标签 描述
   */
  [prop_increase_type_describe]: string;
}
